﻿#region

using System.Xml.Serialization;
using DotNetMax.CodeGen.Model.Enum;

#endregion

namespace DotNetMax.CodeGen.Model.Entity
{
    /// <summary>
    /// Entidade de Arquivo de PlugIn
    /// </summary>
    public class PlugInFile : BaseEntity
    {
        #region Constructor

        public PlugInFile()
        {
        }

        public PlugInFile(string filePath, string name) : base(filePath, name)
        {
        }

        public PlugInFile(string filePath, string name, string guid) : base(filePath, name, guid)
        {
        }

        public PlugInFile(PlugInFileType fileType)
        {
            _FileType = fileType;
        }

        public PlugInFile(string filePath, string name, PlugInFileType fileType) : base(filePath, name)
        {
            _FileType = fileType;
        }

        public PlugInFile(string filePath, string name, string guid, PlugInFileType fileType)
            : base(filePath, name, guid)
        {
            _FileType = fileType;
        }

        #endregion

        #region Fields

        private PlugInFileType _FileType;

        #endregion

        #region Properties

        /// <summary>
        /// Contém o Tipo do Arquivo
        /// </summary>
        [XmlAttribute("FileType")]
        public PlugInFileType FileType
        {
            get { return _FileType; }
            set { _FileType = value; }
        }

        #endregion
    }
}